js remove last character from string

171

js remove last character from string -

let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
 Run code snippet

js remove last character from string -

let str = "12345.00";
str = str.substring(0, str.length - 1);

Comments

Submit
0 Comments